﻿using Batman.UserManagement.Common;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Batman.UserManagement
{
    public class BaseController : Controller
    {
        public RedirectToActionResult Success(string message = null, string returnUrl = null, string extendMessage = null, string extendLink = null)
        {
            return new RedirectToActionResult("Success", "Done", new CommonSuccessInput
            {
                ExtendLink = extendLink,
                ReturnUrl = returnUrl,
                ExtendMessage = extendMessage,
                Message = message
            });
        }
    }
}
